package com.xgr.wonderful.entity;

import com.easemob.chat.EMConversation;

public class SuperConversation {
	private Integer remoteUserId; 
	private String remoteUsername;
	private Photo remoteUserPhoto;
	private EMConversation emConversation;

	public SuperConversation(Integer remoteUserId, String remoteUsername,
			Photo remoteUserPhoto) {
		this.remoteUserId = remoteUserId;
		this.remoteUsername = remoteUsername;
		this.remoteUserPhoto = remoteUserPhoto;
	}

	public void setRemoteUserId(Integer remoteUserId) {
		this.remoteUserId = remoteUserId;
	}
	
	public Integer getRemoteUserId() {
		return remoteUserId;
	}

	public String getRemoteUsername() {
		return remoteUsername;
	}

	public void setRemoteUsername(String remoteUsername) {
		this.remoteUsername = remoteUsername;
	}

	public Photo getRemoteUserPhoto() {
		return remoteUserPhoto;
	}

	public void setRemoteUserPhoto(Photo remoteUserPhoto) {
		this.remoteUserPhoto = remoteUserPhoto;
	}
	
	public EMConversation getEmConversation() {
		return emConversation;
	}
	
	public void setEmConversation(EMConversation emConversation) {
		this.emConversation = emConversation;
	}
	
	public User getRemoteUser(){
		User user = new User() ;
		user.setUsername(getRemoteUsername());
		user.setID(getRemoteUserId()) ;
		user.setPhoto(getRemoteUserPhoto()) ;
		return user ;
	}
}
